<?php 

 
关键字的类
class Keyword
{	
	public static $name="张三";
	static function run(){
		echo "2222222222";
	}
	
}





// 下面两个例子比较self::与static::
// class Vehicle {
//     protected static $name = 'This is a Vehicle';
//     public static function what_vehicle() {
//         echo get_called_class()."\n";               
//         echo self::$name;	//输出的是父集的$name
//     }
// }

// class Sedan extends Vehicle {
//     protected static $name = 'This is a Sedan';
// }






// class Vehicle {
//     protected static $name = 'This is a Vehicle';
//     public static function what_vehicle() {
//         echo get_called_class()."\n";       
//         echo static::$name;		//输出的是子集的$name
//     }
// }
// class Sedan extends Vehicle {
//     protected static $name = 'This is a Sedan';
// }












 ?>